-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not duplicate comment #1914
Do not duplicate comment #1914
Conversation
src/Fantomas.Tests/CommentTests.fs
Outdated
@@ -1558,3 +1558,44 @@ Host | |||
|
|||
// | |||
""" | |||
|
|||
[<Test>] | |||
let ``comment should not be duplicated, 1912`` () = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you a slightly more related test name?
Something like comment after bracket in record should not be duplicated in computation expression
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@su8898 same for the commit message title, add "in computation expression" at the end at least
src/Fantomas/CodePrinter.fs
Outdated
@@ -1389,6 +1389,7 @@ and genExpr astContext synExpr ctx = | |||
) | |||
|
|||
| CompExpr (isArrayOrList, e) -> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this newline, please? Keep the git diff as minimal as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @su8898, thanks for this PR.
Could you address my two nitpicks, please?
882ed2d
to
392df29
Compare
Hi @nojaf many thanks for the review. I've addressed the nits. Could you please take a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @su8898!
Fixes #1912